//混入对象(复用的配置对象)
export default {
  data() {
    return {
      count: 0,
    };
  },
  methods: {
    addCount() {
      this.count++;
    },
  },

  mounted() {
    console.log("初始化mounted");
  },

  beforeDestroy() {
    console.log("销毁");
  },
  watch: {
    count() {
      console.log("count改变了");
    },
  },
};
